package fr.inria.phoenix.scenario.cookerreminderfinal.impl.context;

import fr.inria.diagen.core.ServiceConfiguration;
import fr.inria.phoenix.diasuite.framework.context.presence.AbstractPresence;
import fr.inria.phoenix.diasuite.framework.device.motiondetector.MotionFromMotionDetector;

/* (non-Javadoc)
 * The implementation of the Presence context
 * @see fr.inria.phoenix.diasuite.framework.context.presence.AbstractPresence
 */
public class Presence extends AbstractPresence {
    
    public Presence(ServiceConfiguration serviceConfiguration) {
        super(serviceConfiguration);
    }
    
    /* (non-Javadoc)
     * @see fr.inria.phoenix.diasuite.framework.context.presence.AbstractPresence#onMotionFromMotionDetector(MotionFromMotionDetector)
     */
    @Override
    protected java.lang.Boolean onMotionFromMotionDetector(MotionFromMotionDetector motionFromMotionDetector) {
    	
    	java.lang.Boolean result = false;
    	
    	if(motionFromMotionDetector.value())
    		result = true;
    	
        return result;
    }
}
